package com.htpay.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.htpay.mapper.MerchantIncomeActMapper;
import com.htpay.model.entity.MerchantIncomeAct;
import com.htpay.service.IMerchantIncomeActService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服务类
 * <p>
 * 商户收款账户表 - 实现类
 */
@Service
public class MerchantIncomeActServiceImpl extends ServiceImpl<MerchantIncomeActMapper, MerchantIncomeAct> implements IMerchantIncomeActService {

    @Autowired
    MerchantIncomeActMapper merchantIncomeActMapper;

    @Override
    public List<MerchantIncomeAct> queryIncomeActListByMerchantId(Integer merchantId) {
        return merchantIncomeActMapper.findIncomeActByMerchantId(merchantId);
    }

    @Override
    public void addMerchantIncomeAct(MerchantIncomeAct merchantIncomeAct) {
        this.save(merchantIncomeAct);
    }

    @Override
    public void stopMerchantIncomeAct(String payeeAct) {

    }

    @Override
    public void deleteMerchantIncomeAct(String payeeAct) {

    }

    @Override
    public MerchantIncomeAct getIncomeActByPayeeAct(String payeeAct) {
        return merchantIncomeActMapper.findIncomeActByPayeeAct(payeeAct);
    }
}
